//
//  UIView+Extension.h
//  BBBS
//
//  Created by 👄 on 15/7/31.
//  Copyright (c) 2015年 sczy. All rights reserved.
//
#import <UIKit/UIKit.h>

@interface UIView (WExtension)
@property (nonatomic, assign) CGFloat x_wl;
@property (nonatomic, assign) CGFloat y_wl;
@property (nonatomic, assign) CGFloat centerX_wl;
@property (nonatomic, assign) CGFloat centerY_wl;
@property (nonatomic, assign) CGFloat width_wl;
@property (nonatomic, assign) CGFloat height_wl;
@property (nonatomic, assign) CGSize  size_wl;
@property (nonatomic, assign) CGPoint origin_wl;
@property (nonatomic) CGFloat maxX_wl;
@property (nonatomic) CGFloat maxY_wl;
/**
 * 判断一个控件是否真正显示在主窗口
 */
- (BOOL)isShowingOnKeyWindow_wl;

/**
 * 在分类中声明@property, 只会生成方法的声明, 不会生成方法的实现和带有_下划线的成员变量
 */
+ (instancetype)viewFromXib_wl;

- (BOOL)isShowingAllOnKeyWindowBol_wl;
- (CGRect)isShowingAllOnKeyWindow_wl;

@end
